package com.ziyun.pop.modules.goods.TwbVo;

import com.utility.New;
import com.ziyun.pop.modules.goods.entity.GoodsAttributeEntity;
import com.ziyun.pop.modules.goods.entity.GoodsOptionEntity;

import java.util.List;

/**
 * 选项vo类
 */
public class TwbAttributeOptionVo {

    //属性
    private GoodsAttributeEntity goodsAttributeEntity;

    //选项
    private List<GoodsOptionEntity> goodsOptionEntityList;

    //选中的集合

    private List<Integer> selectOption;

    //相同价格设置集合
    private List<Integer> sameSelectOption;

    public GoodsAttributeEntity getGoodsAttributeEntity() {
        return goodsAttributeEntity;
    }

    public void setGoodsAttributeEntity(GoodsAttributeEntity goodsAttributeEntity) {
        this.goodsAttributeEntity = goodsAttributeEntity;
    }

    public List<GoodsOptionEntity> getGoodsOptionEntityList() {
        return goodsOptionEntityList;
    }

    public void setGoodsOptionEntityList(List<GoodsOptionEntity> goodsOptionEntityList) {
        this.goodsOptionEntityList = goodsOptionEntityList;
    }

    public List<Integer> getSelectOption() {
        if(selectOption == null){
            return New.arrayList();
        }
        return selectOption;
    }

    public void setSelectOption(List<Integer> selectOption) {
        this.selectOption = selectOption;
    }

    public List<Integer> getSameSelectOption() {
        if(sameSelectOption == null){
            return New.arrayList();
        }
        return sameSelectOption;
    }

    public void setSameSelectOption(List<Integer> sameSelectOption) {
        this.sameSelectOption = sameSelectOption;
    }
}
